import Vue from "vue";
import Router from "vue-router";
import Login from "./components/login/login.vue";

Vue.use(Router);

export default new Router({
  routes: [{
      path: "/",
      name: "Login",
      component: Login
    },
    {
      path: "/home",
      name: "Home",
      component: () =>
        import("./components/layout/layout.vue"),
      children: [
        //用户管理                        
        {
          path: "/home/userInfo",
          name: "UserInfo",
          component: () =>
            import("./components/userManage/userInfo.vue")
        },
        {
          path: "/home/addUser",
          name: "AddUser",
          component: () =>
            import("./components/userManage/addUser.vue")
        },
        {
          path: "/home/userSubsidy",
          name: "UserSubsidy",
          component: () =>
            import("./components/userManage/userSubsidy.vue")
        },
        {
          path: "/home/test",
          name: "Test",
          component: () =>
            import("./components/userManage/test.vue")
        },
        //项目管理
        {
          path: "/home/projectList",
          name: "ProjectList",
          component: () =>
            import("./components/projectManage/projectList.vue")
        },
        {
          path: "/home/projectDetail",
          name: "ProjectDetail",
          component: () =>
            import("./components/projectManage/projectDetail.vue")
        },

        {
          path: "/home/addProject",
          name: "AddProject",
          component: () =>
            import("./components/projectManage/addProject.vue")
        },
        {
          path: "/home/fenChengEdit",
          name: "FenChengEdit",
          component: () =>
            import("./components/projectManage/fenChengEdit.vue")
        },
        {
          path: "/home/addHT",
          name: "AddHT",
          component: () =>
            import("./components/projectManage/addHT.vue")
        },
        {
          path: "/home/setCharacter",
          name: "SetCharacter",
          component: () =>
            import("./components/projectManage/setCharacter.vue")
        },
        {
          path: "/home/modle",
          name: "Modle",
          component: () =>
            import("./components/projectManage/modle.vue")
        },
        //矿机管理
        {
          path: "/home/deviceList/",
          name: "DeviceList",
          component: () =>
            import("./components/deviceManage/deviceList.vue")
        },
        {
          path: "/home/addDevice",
          name: "AddDevice",
          component: () =>
            import("./components/deviceManage/addDevice.vue")
        },
        {
          path: "/home/nodeManager/",
          name: "NodeManager",
          component: () =>
            import("./components/deviceManage/nodeManager.vue")
        },
        //提现管理
        {
          path: "/home/cash",
          name: "Cash",
          component: () =>
            import("./components/cashManage/cash.vue")
        },

        //补贴管理
        {
          path: "/home/bonus",
          name: "Bonus",
          component: () =>
            import("./components/bonusManage/bonus.vue")
        },
        {
          path: "/home/setBonus",
          name: "SetBonus",
          component: () =>
            import("./components/bonusManage/setBonus.vue")
        },

        //报表查看
        {
          path: "/home/reportForm",
          name: "ReportForm",
          component: () =>
            import("./components/reportFormManage/reportForm.vue")
        },

        //云算力
        {
          path: "/home/cloudPower",
          name: "CloudPower",
          component: () =>
            import("./components/cloudPower/cloudPower.vue")
        },


      ]
    }
  ]
});